package expriment3_bag;
public class Tree {
    public static void main(String[] args) {
        System.out.println("原数组如下：");
        int[] arr={11,34,47,19,5,87,63,88};
        for (int i:arr){
            System.out.print(i+"    ");
        }
        System.out.println();
        System.out.println("逆序后的数组如下：");
        int [] t=new int[arr.length];
        for(int i=0;i<arr.length;i++){
            t[i]=arr[arr.length-1-i];
        }
        System.arraycopy(t,0,arr,0,arr.length);
        for (int i=0;i<t.length;i++){
            System.out.print(arr[i]+"    ");
        }
    }
}
